<template>
	<router-view v-if="isRouterAlive"></router-view>
</template>

<script setup>
import useStorePinia from '@/store'
import { onMounted, ref, nextTick, provide } from "vue";
// 局部组件刷新
const isRouterAlive = ref(true);
const { user } = useStorePinia()
const reload = () => {
	isRouterAlive.value = false;
	nextTick(() => {
		isRouterAlive.value = true;
	});
};

provide("reload", reload);
</script>

<style lang="scss"></style>
